package com.sangeng.controller;

import com.sangeng.annotation.SystemLog;
import com.sangeng.domain.ResponseResult;
import com.sangeng.service.LinkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 友链(Link)表控制层
 *
 * @author makejava
 * @since 2024-08-13 21:08:18
 */
@RestController
@RequestMapping("link")
@Api(tags = "友链管理")
public class LinkController {
    @Autowired
    private LinkService linkService;

    //查询出所有的审核通过的友链。
    @SystemLog(businessName = "友链管理")
    @GetMapping("/getAllLink")
    @ApiOperation(value = "查询所有友链")
    public ResponseResult getAllLink(){
        return  linkService.getAllLink();
    }
}

